package com.cg.design.depthdesign.adapter.square;

/**
 * 方钉
 *
 * @author cg
 * @program LeetCode->SquarePeg
 * @create 2022-07-18 22:38
 **/
public class SquarePeg {

    private double width;

    public SquarePeg(double width) {
        this.width = width;
    }

    public double getWidth() {
        return width;
    }

    public double getSquare() {
        double result;
        result = Math.pow(this.width, 2);
        return result;
    }

}
